
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="../css/popup.css"/> 
        <link rel="stylesheet" type="text/css" href="../css/kapiform.css"/> 

        <script type="text/javascript" language="javascript" src="../scripts/jQuery/kapi.js"></script>

        <script type="text/javascript">
            var open_cur = 0;
            $j = jQuery.noConflict();
            $j(document).ready(function(){   
            });
        </script>
    </head>
    <f:view>
        <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>
        <body>
            <a4j:form id="formcompany">


                <h:inputHidden id="PN100n3"  value="#{customerExpand.PN100}"  />
                <div class="fromtim">
                    <div class="fast_search1">
                        <h:inputText  value="#{customerExpand.keySearch}" onkeyup="this.value=this.value.toUpperCase();"  onfocus="if(this.value=='')this.value='';"  styleClass="keysearch1"  style="width:256px;margin-left: 66px;"/>
                        <a4j:commandButton  value='' actionListener="#{customerExpand.reload1}"
                                            onclick="showPleaseWait();"
                                            oncomplete="hidePleaseWait();" 

                                            styleClass="buttonsearch" reRender="message6,search"  />

                    </div>
                </div>
                <div class="buttonsave1">
                    <span><h:outputText value="Thêm công ty"/></span>
                </div>
                <div class="buttonsave2">
                    <span><h:outputText value="Tìm kiếm"/></span>
                </div>


                <div class="research">
                    <h:panelGroup id="search">
                        <div style="height:150px ; width:100%; overflow-x:auto; overflow-y:scroll"> 

                            <rich:dataTable reRender="sc2" value="#{customerExpand.listCustomerExpand}" var="item"                            
                                            rowClasses="greyRow, whiteRow"
                                            width="926px" columnClasses=",columns,columns,columns" rowKeyVar="row"
                                            id="table" styleClass="machinePosDataTable">
                                <rich:column>
                                    <f:facet name="header">
                                        <h:outputText value="Chọn" />
                                    </f:facet>

                                    <input type="checkbox" class="check_select1" name="foo" value="bar<h:outputText value="#{row+1}"/>" lang="<h:outputText value="#{item.pk100}"/>" id="k100-<h:outputText value="#{item.pk100}"/>"/>
                                </rich:column>
                                <rich:column style="width:300px;" styleClass="demo11">
                                    <f:facet name="header">
                                        <h:outputText  value="Tên công ty" /> 
                                    </f:facet>
                                    <div class="congty">
                                        <h:outputText  styleClass="cty" value="#{item.kv103}" />    
                                    </div>
                                </rich:column>
                                <rich:column style="width:200px;" styleClass="demo11">
                                    <f:facet name="header">
                                        <h:outputText  value="Tên giao dịch" />
                                    </f:facet>
                                    <div style="width:120px;">
                                        <h:outputText  styleClass="tendg" value="#{item.kv105}" />
                                    </div>
                                </rich:column>
                                <rich:column style="width:200px;" styleClass="demo11">
                                    <f:facet name="header">
                                        <h:outputText styleClass="tnn" value="Ngành nghề" />
                                    </f:facet>
                                    <div style="width:200px;">
                                        <h:outputText   value="#{item.nv552}" />
                                        <h:outputText style="display:none"  styleClass="cty1" value="#{item.fn550}" />
                                    </div>
                                </rich:column>

                            </rich:dataTable>
                        </div>
                        <div class="popup-footer" style="height:40px;">
                            <h:outputText value="#{customerExpand.message}" id="mesagecheck" styleClass="mesage"/>

                        </div>

                    </h:panelGroup>
                </div>
                <div class="fromcareww">
                    <div style="float:left; width:320px;">
                        <div class="fields_input">
                            <label><h:outputText value="Tên công ty"/> *:</label>&nbsp;
                            <h:inputText value="#{customerExpand.KV102}" onkeyup="this.value=this.value.toUpperCase();">
                            </h:inputText>

                        </div>
                        <div class="fields_input">
                            <label><h:outputText value="Tên giao dịch"/>:</label>&nbsp;
                            <h:inputText value="#{customerExpand.KV103}" id="company1" onkeyup="this.value=this.value.toUpperCase();">
                                <h:message for="company1"/>
                            </h:inputText>

                        </div>
                            <div class="fields_input">
                            <label><h:outputText value="Mã số thuế"/>:</label>&nbsp;
                            <h:inputText value="#{customerExpand.KV108}" id="company111" onkeyup="this.value=this.value.toUpperCase();">
                                
                            </h:inputText>

                        </div>

                    </div>
                    <div style="float:left; width:326px;">
                        <div class="fields_input">
                            <label><h:outputText value="Nguồn" />:</label>&nbsp;
                            <h:selectOneMenu value="#{customerExpand.FK300}">
                                <f:selectItems value="#{customerExpand.listComboK300}"/>
                            </h:selectOneMenu>
                        </div>
                        <div class="fields_input">
                            <label style="margin-top: 0px;"><h:outputText value="Status" />:</label>&nbsp;
                            <h:selectOneMenu value="#{customerExpand.FK330}">
                                <f:selectItems value="#{customerExpand.listComboK330}"/>
                            </h:selectOneMenu>
                        </div>
                        <div class="fields_input">
                            <label><h:outputText value="#{locale.career}"/>: </label>
                            <h:selectOneMenu id="comboboxn550" value="#{customerExpand.FN550}"  styleClass="combobox" style="width:166px;">
                                <f:selectItems value="#{k100Controller.combN550}"></f:selectItems> 
                            </h:selectOneMenu>
                        </div>
                    </div>
                    <div style="width:100%;float:left;margin-top:8px;">
                        <label class="labelnote"><h:outputText value="#{locale.notice1}"/>:</label>
                        <h:inputTextarea value="#{customerExpand.KV101}" cols="20" styleClass="contentnote" style="margin-left: 9px;width: 517px;" ></h:inputTextarea>
                        </div>
                        <div class="popup-footer" style="height:40px;">
                        <h:outputText value="#{customerExpand.message}" id="mesage1111" styleClass="mesage"/>
                        <a4j:commandButton  value='#{locale.save}' action="#{customerExpand.saveDataFK100}"
                                            onclick="showPleaseWait();"
                                            oncomplete="hidePleaseWait();" style=""
                                            styleClass="buttonsave" reRender="mesage1111">
                            <f:param value="#{customerExpand.PN100}" name="pn100EX"/>
                            <f:param value="#{CustomerBean.pn100}" name="pn100CX"/>
                        </a4j:commandButton>

                        <h:outputText value="#{customerExpand.PN100}" style="display:none"/>
                        <h:outputText  value="#{CustomerBean.pn100}" style="display:none"/>

                    </div>
                </div>
                <!-- E/DIVnd List Content-->

            </a4j:form>
        </body>
    </f:view>

</html>
